package org.linlinjava.litemall.db.domain;

import java.time.LocalDateTime;

/**
 * 积分记录表
 */
public class LitemallPointsRecord {
    private Integer id;
    private Integer userId;
    private Double integral; // 积分
    /*
    0：积分转出
    1：系统奖励
    2：积分提现
    3：后台人工增加积分
    4：积分转入（跟0相反）
    5：积分支付订单
    10：后台人工减少积分（跟3相反）
     */
    private Integer type; //
    private String remark; // 备注
    private LocalDateTime createTime;
    private Integer fromUserId;// 受哪位用户影响的id
    private String orderSn;// 订单影响id

    public Integer getFromUserId() {
        return fromUserId;
    }

    public void setFromUserId(Integer fromUserId) {
        this.fromUserId = fromUserId;
    }

    public String getOrderSn() {
        return orderSn;
    }

    public void setOrderSn(String orderId) {
        this.orderSn = orderId;
    }

    // 银行卡信息
    private String yhk;
    private String yhklx;

    public String getYhk() {
        return yhk;
    }

    public void setYhk(String yhk) {
        this.yhk = yhk;
    }

    public String getYhklx() {
        return yhklx;
    }

    public void setYhklx(String yhklx) {
        this.yhklx = yhklx;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Double getIntegral() {
        return integral;
    }

    public void setIntegral(Double integral) {
        this.integral = integral;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }
}
